import http from '../http';
//进页面全查询
export const searchApi=(page,size)=>http({
    url:'/salesAdd/selectByList',
    method:'post',
    params:{
        page,size
    },
});
//搜索查询结果
export const searchlistApi=(name,page,size)=>http({
    url:'/salesAdd/selectSorage',
    method:'post',
    params:{
        name,page,size
    }
})
//商品明细渲染
export const CommodityApi=(orderId)=>http({
    url:'/salesAdd/selectByGoodsXqList',
    method:'post',
    params:{
        orderId
    }
})
//删除
export const delDindanApi=(id)=>http({
    url:'/salesAdd/delete',
    method:'post',
    params:{
        id
    }
});
//添加
export const addListApi=(id,orderId)=>http({
    url:'/salesAdd/addGoods',
    method:'post',
    params:{
        id,orderId
    }
});
//赠品
export const  addgitfApi=(id,orderId)=>http({
    url:'/salesAdd/addGoodsGiveaway',
    method:'post',
    params:{
        id,orderId
    }
});
//+/-
export const  increaseDApi=(bigCount,id,smallCount)=>http({
    url:'/salesAdd/updateByPrice',
    method:'post',
    params:{
        bigCount,id,smallCount
    }
});

//提交
export const  submitEditApi=(data={})=>http({
    url:'/salesAdd/add',
    method:'post',
    data
});
// submitEditApi
